import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
import router from './router'
import '@/styles/index.scss'
import store from './store'
app.use(store)

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import settings from '@/settings'
import zh from 'element-plus/es/locale/lang/zh-cn'
import './permission'
let lang = { zh }
app.use(ElementPlus, {
  size:  settings.defaultSize,
  locale: lang[settings.defaultLanguage]
})
import i18n from '@/lang'
app.use(i18n)

app.use(router).mount('#app')
